package main

import "fmt"

/*
* Author: JacksonCoder
* CreateTime: 2025/5/18
 */

type IntVetor []int

func (iv IntVetor) Sum(param int) (re int){
	su := 0
	for _, v := range iv{
		su = su + v
	}
	re = su + param
	return
}

// 非结构体上的列子
func main(){
	tv := IntVetor{3,4,5,6}
	fmt.Println(tv.Sum(333))
}